package com.ht.springbootssm.service.impl;

import com.ht.springbootssm.mapper.UserMapper;
import com.ht.springbootssm.pojo.User;
import com.ht.springbootssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService {

    private UserMapper userMapper;
    @Autowired
    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User findUserId(Long id) {
        return userMapper.finUserById(id);
    }
}
